import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/fund_record_list_entity.g.dart';
import 'dart:convert';
export 'package:seedfour/generated/json/fund_record_list_entity.g.dart';

@JsonSerializable()
class FundRecordListEntity {
  int total = 0;
  List<FundRecordListData> data = [];

  FundRecordListEntity();

  factory FundRecordListEntity.fromJson(Map<String, dynamic> json) =>
      $FundRecordListEntityFromJson(json);

  Map<String, dynamic> toJson() => $FundRecordListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class FundRecordListData {
  int createdAt = 0;
  int updatedAt = 0;
  int id = 0;
  String orgId = '';
  String uid = '';
  String orderId = '';
  String deductOrderId = '';
  int type = 0;
  String amount = '';
  String totalBalance = '';
  String remark = '';
  String createdAtTime = '';

  FundRecordListData();

  factory FundRecordListData.fromJson(Map<String, dynamic> json) =>
      $FundRecordListDataFromJson(json);

  Map<String, dynamic> toJson() => $FundRecordListDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
